package field_method04;

public class User {
        String userName;

        String password;

        public boolean login(String userNameParam,String passwordParam){
            System.out.println("传递过来的用户名："+ userNameParam);
            System.out.println("传递过来的密码："+ passwordParam);



            if (userNameParam.equals("admin")&& passwordParam.equals("123456789")) {
                return true;
            }else {
                return false;
            }
        }
    }

